import { createApp, h } from "vue";

import "bootstrap/dist/css/bootstrap.min.css";
import "@fortawesome/fontawesome-free/css/all.min.css";
import "@fortawesome/fontawesome-free";

// 导入组件对象
import App from "./App.vue";
import BsIcon from "./components/BsIcon.vue";
import BsButton from "./components/BsButton.vue";
import BsDialog from "./components/BsDialog.vue";

const app = createApp({
  // template:''
  /* render: () => {
    // h()创建节点
    // return h("div", ["hello", h("b", ["jack"])]);
    // -----------------
    // 返回 vue 组件对象
    return h(App);
  }, */
  render: () => h(App),
});

app.component("BsIcon", BsIcon);
app.component("BsButton", BsButton);
app.component("BsDialog", BsDialog);
app.mount("#app");
